
package com.jims.master.modules.doctor.entity;

import com.jims.master.modules.nurse.entity.BedRec;
import org.hibernate.validator.constraints.Length;

import com.jims.master.common.persistence.DataEntity;

import java.util.Date;
import java.util.List;
/**
 * 门诊处方主表Entity
 *
 * @author CTQ
 * @version 2017-03-13
 */
public class PrescriptionApply extends DataEntity<PrescriptionApply> {
	private static final long serialVersionUID = 1L;
	private String clinicId;		// 就诊记录ID
    private String visitId;         //住院记录
    private String ordersId;        //医嘱ID
	private String applyOn;		    // 申请序号
	private String patientId;		// 病人信息Id
	private String inoroutFlag;		// 门诊0/住院1/门诊手术2/住院手术3
	private String confirmFlag;		// 发药标志 0未发/1已发/2已退
	private String chargeFlag;		// 收费标志
	private String implementDept;	// 发药药房
	private String prescAttr;		// 处方属性
	private String itemClass;		// 处方分类
	private String prescStatus;     //是否已保存至医嘱表
	private String billingDept;//开单科室
	private String implUser;		// 执行人
	private String implDept;		// 执行科室
	private String day;
	private String startTime;
	private String endTime;
    private Date outDate;       //发药时间
	private PrescriptionItem prescriptionItem;
	private BedRec bedRec;
	private PatVisitIndex patVisitIndex;
	private List<PrescriptionItem> prescriptionItems;
	private PatVisit patVisit;
	private Double totalCosts;
    private String ordersFlag;
    private String wardCode;
    private String clinicNo;//门诊号
	private String isTemplate;

	public PatVisitIndex getPatVisitIndex() {
		return patVisitIndex;
	}

	public void setPatVisitIndex(PatVisitIndex patVisitIndex) {
		this.patVisitIndex = patVisitIndex;
	}

	public PrescriptionItem getPrescriptionItem() {
		return prescriptionItem;
	}

	public void setPrescriptionItem(PrescriptionItem prescriptionItem) {
		this.prescriptionItem = prescriptionItem;
	}

	public BedRec getBedRec() {
		return bedRec;
	}

	public void setBedRec(BedRec bedRec) {
		this.bedRec = bedRec;
	}

	public String getDay() {
		return day;
	}

	public void setDay(String day) {
		this.day = day;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	//扩展字段
	public PrescriptionApply() {
		super();
	}

	public PrescriptionApply(String id){
		super(id);
	}




    @Length(min=1, max=64, message="就诊记录ID/住院记录长度必须介于 1 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
	@Length(min=1, max=200, message="申请序号长度必须介于 1 和 200 之间")
	public String getApplyOn() {
		return applyOn;
	}

	public void setApplyOn(String applyOn) {
		this.applyOn = applyOn;
	}
	
	@Length(min=1, max=64, message="病人信息Id长度必须介于 1 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=1, max=1, message="住院/门诊长度必须介于 1 和 1 之间")
	public String getInoroutFlag() {
		return inoroutFlag;
	}

	public void setInoroutFlag(String inoroutFlag) {
		this.inoroutFlag = inoroutFlag;
	}
	
	@Length(min=1, max=1, message="发药标志长度必须介于 1 和 1 之间")
	public String getConfirmFlag() {
		return confirmFlag;
	}

	public void setConfirmFlag(String confirmFlag) {
		this.confirmFlag = confirmFlag;
	}
	
	@Length(min=1, max=1, message="收费标志长度必须介于 1 和 1 之间")
	public String getChargeFlag() {
		return chargeFlag;
	}

	public void setChargeFlag(String chargeFlag) {
		this.chargeFlag = chargeFlag;
	}
	
	@Length(min=1, max=64, message="发药药房长度必须介于 1 和 64 之间")
	public String getImplementDept() {
		return implementDept;
	}

	public void setImplementDept(String implementDept) {
		this.implementDept = implementDept;
	}
	
	@Length(min=1, max=1, message="处方属性长度必须介于 1 和 1 之间")
	public String getPrescAttr() {
		return prescAttr;
	}

	public void setPrescAttr(String prescAttr) {
		this.prescAttr = prescAttr;
	}
	
	@Length(min=1, max=1, message="处方分类长度必须介于 1 和 1 之间")
	public String getItemClass() {
		return itemClass;
	}

	public void setItemClass(String itemClass) {
		this.itemClass = itemClass;
	}

	public String getPrescStatus() {
		return prescStatus;
	}

	public void setPrescStatus(String prescStatus) {
		this.prescStatus = prescStatus;
	}

    public String getVisitId() {
        return visitId;
    }

    public void setVisitId(String visitId) {
        this.visitId = visitId;
    }

    public String getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(String ordersId) {
        this.ordersId = ordersId;
    }

	public List<PrescriptionItem> getPrescriptionItems() {
		return prescriptionItems;
	}

	public void setPrescriptionItems(List<PrescriptionItem> prescriptionItems) {
		this.prescriptionItems = prescriptionItems;
	}

	public PatVisit getPatVisit() {
		return patVisit;
	}

	public void setPatVisit(PatVisit patVisit) {
		this.patVisit = patVisit;
	}

	public Double getTotalCosts() {
		return totalCosts;
	}

	public void setTotalCosts(Double totalCosts) {
		this.totalCosts = totalCosts;
	}

    public Date getOutDate() {
        return outDate;
    }

    public void setOutDate(Date outDate) {
        this.outDate = outDate;
    }

    public String getOrdersFlag() {
        return ordersFlag;
    }

    public void setOrdersFlag(String ordersFlag) {
        this.ordersFlag = ordersFlag;
    }

	public String getBillingDept() {
		return billingDept;
	}

	public void setBillingDept(String billingDept) {
		this.billingDept = billingDept;
	}

	public String getImplUser() {
		return implUser;
	}

	public void setImplUser(String implUser) {
		this.implUser = implUser;
	}

	public String getImplDept() {
		return implDept;
	}

	public void setImplDept(String implDept) {
		this.implDept = implDept;
	}

	public String getWardCode() {
		return wardCode;
	}

	public void setWardCode(String wardCode) {
		this.wardCode = wardCode;
	}

	public String getClinicNo() {
		return clinicNo;
	}

	public void setClinicNo(String clinicNo) {
		this.clinicNo = clinicNo;
	}


	public String getIsTemplate() {
		return isTemplate;
	}

	public void setIsTemplate(String isTemplate) {
		this.isTemplate = isTemplate;
	}
}